package com.library.common.enums;

import lombok.Getter;

/**
 * @ClassName: BorrowRecordType
 * @Description: 借阅状态
 * @Author: hb
 * @Date: 2024/9/27
 */
@Getter
public enum BooksBorrowStatus {
    /**
     * 正常（借阅）
     */
    NORMAL("0", "正常"),

    /**
     * 逾期
     */
    OVERDUE("1", "逾期"),

    /**
     * 已归还
     */
    RETURN("2", "已归还");

    private final String code;
    private final String info;

    BooksBorrowStatus(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public boolean equals(String source) {
        return this.getCode().equals(source);
    }

}
